<template>
	<el-drawer title="发货详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="关联合同" prop="contractId">{{form.title}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="送货单位" prop="trackingComp">{{form.trackingComp}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="送货单号" prop="trackingNumber">{{form.trackingNumber}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="发货人" prop="sendUser">{{form.sendUserName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="收货人" prop="consignee">{{form.consignee}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="收货人电话" prop="iphone">{{form.iphone}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="发货日期" prop="sendDate">{{form.sendDate}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="收货地址" prop="address">{{form.address}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="发货备注">
						<div v-html="form.remark"></div>
					</el-form-item>
					<el-form-item label="相关附件" v-if="form.attachId!=''">
						<attach-menu :attachIds="form.attachId" :roleFlag="3" :preview="true"></attach-menu>
					</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
import AttachMenu from '@/views/module/attachMenu'
export default {
	emits: ['success', 'closed'],
	components: {
		AttachMenu,
	},
	data() {
		return {
			loading: false,
			form: {
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		setData(data){
			this.form = data
		},
	}
}
</script>

<style>
</style>
